﻿using System.Windows.Controls;

namespace VosSoft.ZuneLcd.Color
{
    /// <summary>
    /// Interaction logic for ZuneProgressBar.xaml
    /// </summary>
    public partial class ZuneProgressBar : UserControl
    {
        public ZuneProgressBar()
        {
            InitializeComponent();
        }

        public double ProgressValue
        {
            get { return gridProgress.ActualWidth / gridOverall.ActualWidth * 100; }
            set { gridProgress.Width = gridOverall.ActualWidth / 100 * value; }
        }
    }
}
